package com.boc_eu.adoweb.adows.adoscript; import org.adoxx.adows.client.ADOxxWebService; public class GetModelImage extends AdoScript { /** * Perform a call to the Drawing message port of ADOxx on the * GEN_GFX_STR operation. Important, the model has to be loaded. * * @param service * @param modelID * @param imageFormat * @param scale */ public GetModelImage(ADOxxWebService service, int modelID, String imageFormat, double scale) { String script = "CC \"Core\" LOAD_MODEL modelid:" + modelID + "\r\nCC \"Drawing\" GEN_GFX_STR modelid:" + String.valueOf(modelID) + " gfx-format:\"" + imageFormat + "\" scale:" + String.valueOf(scale); execute(service, script, "gfx"); } }